class StoreUtils {

  static setJson(key, json){
    sessionStorage.setItem(key, JSON.stringify(json));
  }

  static getJson(key){
    if(!key) {
      return null;
    }
    return JSON.parse(sessionStorage.getItem(key));
  }

  static setValue(key, value){
    sessionStorage.setItem(key, value)
  }

  static getValue(key){
    return sessionStorage.getItem(key);
  }
}

export default StoreUtils;
